package com.zbkj.common.request.brand;

import com.zbkj.common.constants.RegularConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BrandUpdateRequest对象", description="品牌商修改请求对象")
public class BrandUpdateRequest implements Serializable {


    @ApiModelProperty(value = "品牌ID")
    @NotNull(message = "品牌ID不能为空")
    private Integer id;

    @ApiModelProperty(value = "品牌商名称", required = true)
    @NotEmpty(message = "品牌商名称不能为空")
    @Length(max = 16, message = "名称不能超过16个字符")
    private String name;

    @ApiModelProperty(value = "品牌商姓名", required = true)
    @NotEmpty(message = "品牌商姓名不能为空")
    private String realName;

    @ApiModelProperty(value = "手机号", required = true)
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = RegularConstants.PHONE_TWO, message = "手机号格式不正确，请重新输入")
    private String phone;

    @ApiModelProperty(value = "手续费(%)", required = true)
    @NotNull(message = "手续费不能为空")
    @Range(min = 0, max = 100, message = "手续费率范围为0-100")
    private Integer handlingFee;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    @Range(min = 0, max = 9999, message = "排序的的范围为0-9999")
    private Integer sortOrder;

    @ApiModelProperty(value = "是否自营：0-非自营，1-自营")
    @NotNull(message = "自营开关不能为空")
    private Boolean isSelf;

    @ApiModelProperty(value = "开关:0-关闭，1-开启", required = true)
    @NotNull(message = "开关不能为空")
    private Boolean isSwitch;

    @ApiModelProperty(value = "商品审核开关:0-关闭，1-开启", required = true)
    private Boolean productSwitch;

    @ApiModelProperty(value = "商户详细地址")
    private String addressDetail;
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "简介")
    private String brandDesc;
    @ApiModelProperty(value = "品牌商logo")
    private String merchantLogo;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "品牌商页的品牌商图片")
    private String picUrl;

    @ApiModelProperty(value = "商户关键字")
    private String keywords;

    @ApiModelProperty(value = "推广链接")
    private String shareUrl;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "市名称")
    private String cityName;

    @ApiModelProperty(value = "区/县名称")
    private String districtName;


    @ApiModelProperty(value = "镇/街道名称")
    private String townName;

    @ApiModelProperty(value = "村名称")
    private String villageName;
}
